<?php
defined('IN_DESTOON') or exit('Access Denied');
include tpl('header');
show_menu($menus);
$fields = array(
	'price'=>array('title'=>'申请额度'),
	'company'=>array('title'=>'公司中文名称'),
	'name'=>array('title'=>'法定代表人'),
	'address'=>array('title'=>'地址'),
	'tel'=>array('title'=>'电话')
);
?>

<div class="tt">修改</div>
<form method="post" action="?">
<input type="hidden" name="file" value="<?php echo $file;?>"/>
<input type="hidden" name="action" value="<?php echo $action;?>"/>
<input type="hidden" name="id" value="<?php echo $id;?>"/>
<table width="100%" cellpadding="2" cellspacing="1" class="tb">
<tr>
  <th width="227" align="right">id</th>
<th width="982" align="left"><?php echo $v['id'];?></th>
<th width="90">&nbsp;</th>
</tr>
<tr onmouseover="this.className='on';" onmouseout="this.className='';" align="center">
  <td align="right">上传人</td>
  <td align="left"><?php echo $v['username'];?></td>
  <td>&nbsp;</td>
  </tr>
<tr onmouseover="this.className='on';" onmouseout="this.className='';" align="center">
  <td align="right">上传时间</td>
  <td align="left"><?php echo date('Y-m-d H:i:s',$v['time']);?></td>
  <td>&nbsp;</td>
  </tr>
<tr onmouseover="this.className='on';" onmouseout="this.className='';" align="center">
  <td align="right">审核人</td>
  <td align="left"><?php echo $v['ausername'];?></td>
  <td>&nbsp;</td>
  </tr>
<tr onmouseover="this.className='on';" onmouseout="this.className='';" align="center">
  <td align="right">审核时间</td>
  <td align="left"><?php if($v['atime'])echo date('Y-m-d H:i:s',$v['atime']);?></td>
  <td>&nbsp;</td>
  </tr>
  <?php
  	foreach($fields as $k=>$v2)
	{
  ?>
  <tr onmouseover="this.className='on';" onmouseout="this.className='';" align="center">
  <td align="right"><?=$v2['title']?></td>
  <td align="left"><?=$v[$k]?></td>
  <td>&nbsp;</td>
  </tr>
  <?php }?>
<tr onmouseover="this.className='on';" onmouseout="this.className='';" align="center">
  <td align="right">状态</td>
  <td align="left"><select name="status">
    <?php
			foreach($_status as $k=>$v1)
			{
		?>
    <option value="<?=$k?>" <?php if($k==$v['status']){?> selected="selected"<?php }?>>
      <?=$v1?>
      </option>
    <?php }?>
  </select></td>
  <td>&nbsp;</td>
  </tr>
<tr onmouseover="this.className='on';" onmouseout="this.className='';" align="center">
  <td align="right">操作</td>
  <td align="left"><input name="submit" type="submit" id="submit" value="修改状态" /></td>
  <td>&nbsp;</td>
  </tr>
</table>
</form>
<?php include tpl('footer');?>